//
//  queue.c
//  Algorithm
//
//  Created by ViliWen on 1/27/16.
//  Copyright © 2016 wlf92. All rights reserved.
//

#include "queue.h"

int queue_enqueue(Queue *queue, const void *data)
{
    return list_ins_next(queue, list_tail(queue), data);
}
int queue_dequeue(Queue *queue, void **data)
{
    return list_rem_next(queue, NULL, data);
}